package com.stary.code.springboot.config.mq;

/**
 * <p>RabbitMQ配置类</p>
 * @author stary {@link stary1993@qq.com}
 * @since 2018-11-1
 */
public class RabbitmqConfig {
	
	/**
	 * rabbitmq服务器地址（默认为127.0.0.1）
	 */
	private String host = "localhost";
	/**
	 * rabbitmq服务器连接端口 （默认为5672）
	 */
	private int port = 5672;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 虚拟服务器地址，默认 /开头
	 */
	private String virtualHost = "/";
	
	public String getHost() {
		return host;
	}
	public RabbitmqConfig setHost(String host) {
		this.host = host;
		return this;
	}
	public int getPort() {
		return port;
	}
	public RabbitmqConfig setPort(int port) {
		this.port = port;
		return this;
	}
	public String getUsername() {
		return username;
	}
	public RabbitmqConfig setUsername(String username) {
		this.username = username;
		return this;
	}
	public String getPassword() {
		return password;
	}
	public RabbitmqConfig setPassword(String password) {
		this.password = password;
		return this;
	}
	public String getVirtualHost() {
		return virtualHost;
	}
	public RabbitmqConfig setVirtualHost(String virtualHost) {
		this.virtualHost = virtualHost;
		return this;
	}
	
}
